package com.zis.auction.dao;

import com.zis.auction.model.AuctBid;
import io.swagger.models.auth.In;
import org.beetl.sql.core.annotatoin.SqlStatement;
import org.beetl.sql.core.mapper.BaseMapper;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface AuctBidDao extends BaseMapper<AuctBid> {

    @SqlStatement(params = "abdId")
    AuctBid findById(String abdId);


    @SqlStatement(params = "suggest,page,pageSize")
    List<AuctBid> findBySuggest(String suggest, Integer page, Integer pageSize);

    @SqlStatement(params = "abdId")
    int updateHits(String abdId);

    @SqlStatement(params = "abdId")
    int updateFocus(String abdId);
}
